﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch07
{
    class Product
    {
        Product()
        {

        }
        //定义一个静态的方法
        public static Product GetInstence()
        {
            return new Product();
        }

        static void Main(string[] args)
        {
            Product p = new Product();
        }

    }
}
